package com.sgb.link.entity;

import com.swgk.core.util.DateUtils;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class PickInvitedApply implements Serializable {

    private String id;
    private String name;
    private String type;
    private String rule;
    private String address;
    private String applyStartTime;
    private String applyEndTime;
    private String typeName;
    private String companyName;
    private String created;    //发布时间
    private String distance;
    private String memberLevel;
    private String minCompany;   //报价最低的公司
    private String minPrice;
    private String offerNum;    //报价家数
    private String region;
    private String ruleCode;//竞标人设定1、公司、个人皆可   2、仅限公司   3、限会员
    private String biddingUserIdentity;//投标身份人限定1、公司、个人皆可   2、仅限公司   3、限会员
    private List<String> biddingRegion;//限制地区
    private List<Integer> biddingUserSign;//竞标人设定 1 按区域 2按会员星级
    private String level;
    private String star;

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getStar() {
        return star;
    }

    public void setStar(String star) {
        this.star = star;
    }
    public String getBiddingUserIdentity() {
        return biddingUserIdentity;
    }

    public void setBiddingUserIdentity(String biddingUserIdentity) {
        this.biddingUserIdentity = biddingUserIdentity;
    }

    public String getRuleCode() {
        return ruleCode;
    }

    public void setRuleCode(String ruleCode) {
        this.ruleCode = ruleCode;
    }

    public List<String> getBiddingRegion() {
        if (biddingRegion ==null){
            biddingRegion = new ArrayList<>();
        }
        return biddingRegion;
    }

    public void setBiddingRegion(List<String> biddingRegion) {
        this.biddingRegion = biddingRegion;
    }

    public List<Integer> getBiddingUserSign() {
        return biddingUserSign;
    }

    public void setBiddingUserSign(List<Integer> biddingUserSign) {
        this.biddingUserSign = biddingUserSign;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getRule() {
        return rule;
    }

    public void setRule(String rule) {
        this.rule = rule;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getApplyStartTime() {
        if (applyStartTime == null)
            return "";
        if (!"".equals(applyStartTime))
            return DateUtils.stampToDatePick(applyStartTime) + "";
        return applyStartTime;
    }

    public void setApplyStartTime(String applyStartTime) {
        this.applyStartTime = applyStartTime;
    }

    public String getApplyEndTime() {
        if (applyEndTime == null)
            return "";
        if (!"".equals(applyEndTime))
            return DateUtils.stampToDatePick(applyEndTime) + "";
        return applyEndTime;
    }

    public void setApplyEndTime(String applyEndTime) {
        this.applyEndTime = applyEndTime;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getCreated() {
        if (created == null)
            return "";
        if (!"".equals(created))
            return DateUtils.stampToMinute(created) + "";
        return created;
    }

    public void setCreated(String created) {
        this.created = created;
    }

    public String getDistance() {
        return distance;
    }

    public void setDistance(String distance) {
        this.distance = distance;
    }

    public String getMemberLevel() {
        return memberLevel;
    }

    public void setMemberLevel(String memberLevel) {
        this.memberLevel = memberLevel;
    }

    public String getMinCompany() {
        return minCompany;
    }

    public void setMinCompany(String minCompany) {
        this.minCompany = minCompany;
    }

    public String getMinPrice() {
        return minPrice;
    }

    public void setMinPrice(String minPrice) {
        this.minPrice = minPrice;
    }

    public String getOfferNum() {
        return offerNum;
    }

    public void setOfferNum(String offerNum) {
        this.offerNum = offerNum;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }
}
